{extend name='table'}
{block name="content"}
<form action="{:sysuri()}" method="post" data-auto="true" class="layui-form layui-card" data-table-id="LocationTable">
  <div class="layui-card-body padding-left-40">
    <div class="layui-form-item">
      <div class=" layui-inline">
        <label class="layui-form-label">{:lang('货位编码')}</label>
        <div class="layui-input-inline">
          <input name="location_code" value='{$vo.location_code|default=""}' class="layui-input" placeholder="{:lang('货位编码')}" required>
        </div>
      </div>
    </div>
    <div class="layui-form-item">
      <div class="layui-inline">
        <label class="layui-form-label">{:lang('区域编码')}</label>
        <div class="layui-input-inline">
          <input name="" value='{$vo.region_code|default=""}' class="layui-input" placeholder="{:lang('区域编码')}({:lang('如：A B C')})" required readonly>
        </div>
      </div>
      <div class=" layui-inline">
        <label class="layui-form-label">{:lang('货架编码')}</label>
        <div class="layui-input-inline">
          <input type="number" name="" value='{$vo.shelves_code|default=""}' class="layui-input" placeholder="{:lang('货架编码')}" required readonly>
        </div>
      </div>
    </div>
    <div class="layui-form-item">
      <div class="layui-inline">
        <label class="layui-form-label">{:lang('层数编码')}</label>
        <div class="layui-input-inline">
          <input type="number" name="" value='{$vo.layers_num|default=1}' class="layui-input" placeholder="{:lang('层数编码')}" required readonly>
        </div>
      </div>
      <div class=" layui-inline">
        <label class="layui-form-label">{:lang('格数编码')}</label>
        <div class="layui-input-inline">
          <input type="number" name="" value='{$vo.lattice_num|default=""}' class="layui-input" placeholder="{:lang('格数编码')}" required readonly>
        </div>
      </div>
    </div>
    <div class="layui-form-item">
      <div class="layui-inline">
        <label class="layui-form-label">{:lang('库存容量')}</label>
        <div class="layui-input-inline">
          <input type="number" name="" value='{$vo.inventory_capacity|default=1}' class="layui-input" placeholder="{:lang('库存容量')}" required readonly>
        </div>
      </div>
      <div class="layui-inline">
        <label class="layui-form-label">{:lang('排序')}</label>
        <div class="layui-input-inline">
          <input type="number" name="sort" value='{$vo.sort|default=""}' class="layui-input" placeholder="{:lang('排序')}" required>
        </div>
      </div>
    </div>
    <div class="layui-form-item">
      <div class="layui-inline">
        <label class="layui-form-label">{:lang('货架类型')}</label>
        <div class="layui-input-inline">
          <select name="shelves_type" lay-search required class="layui-select">
            {foreach $shelves_type as $key=>$val}
            <option {if !empty($vo.shelves_type) && $key eq $vo.shelves_type }selected{/if} value="{$key|default=''}">{$val|default=''}</option>
            {/foreach}
          </select>
        </div>
      </div>
      <div class="layui-inline">
        <label class="layui-form-label">{:lang('状态')}</label>
        <div class="layui-input-inline">
          <select name="status" lay-search required class="layui-select">
            {foreach $status as $key=>$val}
            <option {if !empty($vo.status) && $key eq $vo.status }selected{/if} value="{$key|default=''}">{$val|default=''}</option>
            {/foreach}
          </select>
        </div>
      </div>
    </div>
  </div>

  <div class="hr-line-dashed"></div>
  {notempty name='vo.id'}<input type='hidden' value='{$vo.id}' name='id'>{/notempty}
  <div class="layui-form-item text-center">
    <button class="layui-btn" type='submit'>{:lang('保存数据')}</button>
    {if !empty($vo.id)}<button class="layui-btn layui-btn-danger" type='button' data-confirm="{:lang('确定要取消编辑吗？')}" data-close>{:lang('取消编辑')}</button>{/if}
  </div>
  <div class="layui-form-item">
    <div class="layui-inline">
    </div>
  </div>
</form>
{/block}